//
//  AddLiveUrlAddress.m
//  SmartiOSPublisher
//
//  Created by Liu,Qingcan on 2017/4/26.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import "AddLiveUrlAddress.h"

@implementation AddLiveUrlAddress{
    NSInteger _userId;
    NSInteger _room_id;
    NSString *_url;
}
- (id)initWithUserId:(NSInteger )userId roomId:(NSInteger)roomId url:(NSString *)url{
    self = [super init];
    if (self) {
        _userId = userId;
        _room_id = roomId;
        _url = url;
    }
    return self;
}

- (NSString *)requestUrl{
    return @"/user/insert_live_address";
}

- (YTKRequestSerializerType)requestSerializerType{
    return YTKRequestSerializerTypeJSON;
}


- (YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

- (id)requestArgument{
    return @{
             @"userid":[NSNumber numberWithInteger:_userId],
             @"roomid":[NSNumber numberWithInteger:_room_id],
             @"add":_url
             
             };
}


@end
